// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "TreeBase.h"
#include "BeHurtable.h"
#include "DynamicTreeBase.generated.h"

/**
 * 
 */

class UDynamicTreePartBase;

UCLASS()
class ISALONG2_API ADynamicTreeBase : public ATreeBase,public IBeHurtable
{
	GENERATED_BODY()
	
protected:

	UDynamicTreePartBase* _part0;
	UDynamicTreePartBase* _part1;
	UDynamicTreePartBase* _part2;
	UDynamicTreePartBase* _part3;
	UDynamicTreePartBase* _part4;
	UDynamicTreePartBase* _part5;
	UDynamicTreePartBase* _part6;
	UDynamicTreePartBase* _part7;
	UDynamicTreePartBase* _part8;
	UDynamicTreePartBase* _part9;
	UDynamicTreePartBase* _part10;
	UDynamicTreePartBase* _part11;
	
public:
	ADynamicTreeBase();

	// implementation of IBeHurtable Interface
	virtual void OnHurt(AActor* shotter, FVector impactNormal, FVector hitLocation, int HurtType, float hurtValue, UPrimitiveComponent* hitComponent) override;

public:
	void OnPartBreak(UDynamicTreePartBase* rootPart);
};